# import types

from metagpt.provider.zhipuai_api import ZhiPuAILLM

def _const_kwargs(self, messages: list[dict], stream: bool = False) -> dict:
    kwargs = {"model": self.model, "messages": messages, "stream": stream, "temperature": 0.3, 'max_tokens': self.config.max_token}
    return kwargs

ZhiPuAILLM._const_kwargs = _const_kwargs

